package NGUYENDUCVIET;

public class RelaModel {
	public boolean Check(RelaEx2 pers){
		if((pers.getSex().equals("Nam")&&pers.getAge()>=22&& pers.getTTHN().equals("Độc thân"))||
				(pers.getSex().equals("Nữ")&&pers.getAge()>=19 && pers.getTTHN().equals("Độc thân")))
			return true;
		else 
			return false;
	}
	


}
